stable search, login

with one small bug in login :O