more login logic and profile partial added