works on registration and log in page