Added Remember me and session functionality.