Login and register screen completed with local validation