user login function, layout adjust