Added functions for user: signup, login, logout, profile viewing.