make login work