added post login functionality