add working login, issues with rendering in layout