Fixes bug with login and register rules