Fixed authlogic login and registration