Updated with devise functionality for users and login