Trying to create a login bean and got the newPost beans ready