Pull Request Dev_1.0

Please avoid throwing the standard Exception, you can use a more specific type of exception. This makes it easier to trace the error when some sort of exception is thrown.

You can place specific exceptions in the app_exception.php file
Something like this for example : 
```
class RecordNotFoundException extends AppException
{}
```
then you may throw and catch like this
```
if (!$rows) {
    throw new RecordNotFoundException("No user records found");
}

try {
   // login
} catch(RecordNotFoundException $e) {
   // login failed
}
```