fixing login and register forms