Moved postLoginAction for better readability