Partial work on authentication - frontend