changed login

added comments/fixed layout