added unique attributes to migrations and worked on authentication