added redirection from after login and dynamic header filling