Fixed Login Bug

Type was not being set correctly