I have freshly installed arch linux according to the steps listed in arch linux wiki page, installed xorg and gnome. In my ~/.xinitrc file I have added the line  exec gnome-session.   Now, when I boot my system and login to tty1, as a normal user( not root) and type startx at the prompt the gnome session doesn't start and instead complains that the connection to the xserver is lost.   But when I log in as root or use su to issue command startx it starts without a problem. Can anyody help me with removing this problem ?  
Unable to start gnome-session without root ?
arch linux;xorg;gnome3;x server
Ensure you have the .xinitrc file in the user home directory. It seems you have the .xinitrc in the root directory and not the users home directory. to verify this run ls -la in the user home directory. If you see a .xinitrc file inspect it using a text editor to see if it has the required content.