iPhone login connects with database. Added collection view for main screen