added indexes on username and email fields of Profile model
login returns username from DB instance instead of HTTP username POST param