Fixing login php issues