fixed login bugs
adding to db successfully