somewhat working login (not really)