Added auth service for linking with database and auth exceptions, other minor fixes
Some fix