changed login redirection, fixed layout