Made login work