Implement auto login on registration