Change devise class to base for user authentication

For #707