Merge pull request #146 from sharoonthomas/flask-login

Use Flask-Login for login support
Fixed issue with registration #4050
Merge pull request #147 from prakashpp/feature/task-4050

Fixed issue with registration #4050
Add is_json property to request