Made login work on browser