Added logout functionality
Generated STI for users