move loginbuttons helper to be if user not logged in

fixes #1