fix weird mobile bug and slight fix for forgot password

For some reason it wasn't working on iPhone, even though it worked fine with a small chrome window!