Made the instance of UserDAO on the class User static, so it wont giver a NotSerializableException.