UserDetails functionality added